# -*- coding: utf-8 -*-
# @Time    : 2024/5/11 21:00
# @Author  : Alvin
# @File    : __init__.py.py
# from celery import Celery
#
# # 创建Celery实例，可以与Flask应用的Celery实例相同或不同
# # 这里假设使用相同的配置
# def make_celery(app):
#     if not hasattr(app, 'celery'):
#         celery = Celery(app.import_name, broker=app.config['CELERY_BROKER_URL'])
#         celery.conf.update(app.config)
#         app.celery = celery
#     return app